﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="E.Web.Teacher.internals.skillgroup.Edit" %>

<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>技能组</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/teacher.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript" src="/js/ajax.js"></script>
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/teacher.js"></script>
  <script type="text/javascript">
      function CheckSkillGroupName(currName) {
          if (currName == "") {
              alert("技能组名称不能为空！");
              return false;
          }
          var url = "/tools/ajax.aspx?t=isExistSkillGroupName";
          var data = "name=" + currName;
          $.ajax({
              url: url,
              data: data,
              aync: true,
              datatype: "text",
              success: function (jsondata) {
                  if (jsondata == "True") {
                      $("#chkNameRst").html("技能组名称已经被占用！");
                  } else {
                      $("#chkNameRst").html("");
                  }
              }
          });
      }
  </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;技能组信息</div>
      </div>
      <div class="spe_line_2"></div>
      <div class="box_1">
        <div class="fl tr left"><span class="hint">*</span>技能组名称：</div>
        <div class="fl" style="line-height:20px; _line-height:23px;">
            <asp:TextBox ID="txtName" runat="server" onblur="CheckSkillGroupName(this.value);"></asp:TextBox>
            &nbsp;<span class="hint" id="chkNameRst"></span></div>
      </div>
      
      <input type="hidden" id="id" name="id" value="<%=id %>" />

      <div style="width:350px; margin-top:20px; text-align:center;">
        <asp:imagebutton ID="btnConfirm" Height="22px" Width="52px" runat="server" 
              ImageUrl="~/images/btn/confirm.gif" onclick="btnConfirm_Click"></asp:imagebutton>
        &nbsp;&nbsp;<a href="/internals/skillgroup/List.aspx"><img alt="" src="/images/btn/back.gif" /></a>
      </div>
    </div>
    <input type="hidden" name="act" id="hideact" value="<%=act %>"/>
    </form>
</body>
</html>

